<?php
/**
 * Created by PhpStorm.
 * User: liyu
 * Date: 2018/4/18
 * Time: 下午5:35
 */

namespace app\common\command;


use app\common\service\swool\WebScocketService;
use think\console\Command;
use think\console\Input;
use think\console\Output;

class WebScocketServer extends Command
{
    protected $swoole ;

    public function configure(){
        $this->setName('WebScocketServer')->setDescription('Here is  socket service ');
    }

    public function execute(Input $input, Output $output)
    {
        $this->swoole = new WebScocketService();
    }
}